﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--#include file="utf-8.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="Include.asp"-->
<!--#include file="page.asp"-->
<%
sortid=request("sortid")
%>
<%
                    if sortid=1 then
                        StrClassName = "本园区招聘"
                    else
                        StrClassName = "园区企业招聘"
                    end if 
                %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>创意产业园</title>
<link href="images/style.css" rel="stylesheet" type="text/css"/>
<script src="images/js.js" type="text/ecmascript"></script>
</head>
<body>
<div id="all">
    <!--#include file="header.asp"-->
    <div class="Job">
        <div class="Content">
            <div class="Content_path">
                <a href="#">招聘</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#"><%=StrClassName%></a>
            </div>
            <div class="Content_title">
                <%=StrClassName%>
            </div>
            <div class="Content_txext">
                <div class="Content_txext_job"></div>
                <ul>
                    <%  
                        set rs=server.createobject("adodb.recordset") 
                        exec="select * from job where sortid="& sortid &" order by id desc" 
                        rs.open exec,conn,1,1 
                        if rs.eof then
                            response.Write "&nbsp;暂无新闻！"
                            response.end
                        end if
                        rs.PageSize =12 '每页记录条数
                        iCount=rs.RecordCount '记录总数
                        iPageSize=rs.PageSize
                        maxpage=rs.PageCount 
                        page=request("page")
                        if Not IsNumeric(page) or page="" then
                            page=1
                        else
                            page=cint(page)
                        end if
                        if page<1 then
                            page=1
                            elseif  page>maxpage then
                            page=maxpage
                        end if
                        rs.AbsolutePage=Page
                        if page=maxpage then
                            x=iCount-(maxpage-1)*iPageSize
                        else
                            x=iPageSize
                        end if  
                    %>
                    <%For i=1 To x%>
                    <%
                        UpdateTime = Year(rs("UpdateTime")) & "-" & Month(rs("UpdateTime")) & "-" & day(rs("UpdateTime")) 
                    %>
                    <li>
                        <span class="Job_seq"><%=i%></span>
                        <a class="Job_content" href="/jobinfo.asp?id=<%=rs("sortid")+80%>&jobid=<%=rs("id")%>" target="_blank">
                            <%=rs("title")%>&nbsp;&nbsp;<%=rs("descriptions")%>
                        </a>
                        <span class="Job_date"><%=UpdateTime%></span>
                    </li>
                    <%
                    rs.movenext
                    next
                    %>
                </ul>
                <div class="showpage">
                    <%'以下显示分页
                    call PageControl(iCount,maxpage,page,"border=0 align=center","<p align=center>")
                    rs.close
                    set rs=nothing
                    %>
                </div>
            </div>
        </div>
        <!--#include file="ContentPage_right.asp"-->
    </div>
    <!--#include file="bottom.asp"-->
</div>
</body>
</html>
